package com.dao;

import com.entity.ThreeLink;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ThreeLinkRepository {

    List<ThreeLink> findAllByTypeAndPId(Integer type, Integer pid);
    List<ThreeLink> findCityByPid(Integer type,Integer pid);
    List<ThreeLink> findAreaByPid(Integer type,Integer pid);
    /**
     * 通过三级地址ID查询地址信息
     */
    String findNameById(Integer id);
}
